package com.ww.springboot.boot.util.pdf;

import cn.hutool.core.io.FileUtil;
import org.apache.commons.codec.binary.Base64;

import java.nio.charset.Charset;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-11-26 10:23
 */
public class Base64ToPDFUtil {


    public static void main(String[] args) {

        String text = FileUtil.readString("static/util/base64", Charset.defaultCharset());

        FileUtil.writeBytes(Base64.decodeBase64(text),"C:\\Users\\ZH500\\桌面\\test\\"+System.currentTimeMillis()+".pdf");
    }
}
